package it.pecuswap.client.rest.service;

import it.pecuswap.client.rest.ClientProvider;
import it.pecuswap.commons.client.rest.interfaces.UtentiServiceInterface;
import it.pecuswap.commons.client.rest.parameters.LoginParameter;
import it.pecuswap.commons.dto.UtentiDTO;
import it.pecuswap.commons.exceptions.PecuswapRestException;
import it.pecuswap.exceptions.ConfigurationException;

public class UtentiServiceClient extends ClientProvider implements UtentiServiceInterface  {
	
	private UtentiServiceInterface utentiServiceInterface = null;

	public UtentiServiceClient() throws ConfigurationException{
		utentiServiceInterface = super.serviceClientInterfaceProvider(UtentiServiceInterface.class);
	}

	@Override
	public UtentiDTO login(LoginParameter param) throws PecuswapRestException {
		return utentiServiceInterface.login(param);
	}

	
}
